
CC = arm-linux-gnueabihf-gcc

all:
	$(MAKE) -C wiringPi 'CC=$(CC)' $@
	-ln -fs libwiringPi.so.2.0 wiringPi/libwiringPi.so
	$(MAKE) -C gpio 'INCLUDE=-I../wiringPi' 'LDFLAGS=-L../wiringPi -static' 'CC=$(CC)' $@

%:
	$(MAKE) -C wiringPi $@
	$(MAKE) -C gpio $@
